﻿$(function(){
	var avatar;
	console.log('ss',location.host,location.domain);
	$.ajax({
			type: "POST",
			url: "http://yx.fxtourong.com/V1/Member/getMemberAvatar",
			data: {
				token : localStorage.getItem("token")
			},
			dataType: "json",
			success: function(data) {								
				var code = data.code;
				console.log(code);				
				if(code == "1") {
					console.log("成功获取个人信息");
					avatar = data.data;
					localStorage.setItem("head_image", avatar);
					console.log("头像:" + avatar);
					$("#imagehead2").attr('src',avatar);
					
				} 
			}
			
		});
});